﻿using System;
using System.Threading.Tasks;
using Wslzy.Auxiliary.Infrastructure.Aspects;

namespace Wslzy.Auxiliary.Infrastructure.Datas.UnitOfWorks
{
    [Ignore]
    public interface IUnitOfWork : IDisposable
    {
        /// <summary>
        /// 提交,返回影响的行数
        /// </summary>
        int Commit();
        /// <summary>
        /// 提交,返回影响的行数
        /// </summary>
        Task<int> CommitAsync();
    }
}
